package com.quantanetwork.esm.port;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Testresult entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "testresult", catalog = "test")
public class Testresult implements java.io.Serializable
{
	// Fields    
	private Integer id;
	private Integer totalPort;
	private Integer totalThread;
	private Integer taskNum;
	private Integer timeOut;
	private Integer runTime;
	private Integer avgThread;
	private Integer maxThread;
	private Integer minThread;
	private String desc;

	// Constructors
	/** default constructor */
	public Testresult()
	{
	}

	/** full constructor */
	public Testresult(Integer totalPort, Integer totalThread, Integer taskNum, Integer timeOut, Integer runTime, Integer avgThread, Integer maxThread, Integer minThread, String desc)
	{
		this.totalPort = totalPort;
		this.totalThread = totalThread;
		this.taskNum = taskNum;
		this.timeOut = timeOut;
		this.runTime = runTime;
		this.avgThread = avgThread;
		this.maxThread = maxThread;
		this.minThread = minThread;
		this.desc = desc;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId()
	{
		return this.id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	@Column(name = "totalPort")
	public Integer getTotalPort()
	{
		return this.totalPort;
	}

	public void setTotalPort(Integer totalPort)
	{
		this.totalPort = totalPort;
	}

	@Column(name = "totalThread")
	public Integer getTotalThread()
	{
		return this.totalThread;
	}

	public void setTotalThread(Integer totalThread)
	{
		this.totalThread = totalThread;
	}

	@Column(name = "taskNum")
	public Integer getTaskNum()
	{
		return this.taskNum;
	}

	public void setTaskNum(Integer taskNum)
	{
		this.taskNum = taskNum;
	}

	@Column(name = "timeOut")
	public Integer getTimeOut()
	{
		return this.timeOut;
	}

	public void setTimeOut(Integer timeOut)
	{
		this.timeOut = timeOut;
	}

	@Column(name = "runTime")
	public Integer getRunTime()
	{
		return this.runTime;
	}

	public void setRunTime(Integer runTime)
	{
		this.runTime = runTime;
	}

	@Column(name = "avgThread")
	public Integer getAvgThread()
	{
		return this.avgThread;
	}

	public void setAvgThread(Integer avgThread)
	{
		this.avgThread = avgThread;
	}

	@Column(name = "maxThread")
	public Integer getMaxThread()
	{
		return this.maxThread;
	}

	public void setMaxThread(Integer maxThread)
	{
		this.maxThread = maxThread;
	}

	@Column(name = "minThread")
	public Integer getMinThread()
	{
		return this.minThread;
	}

	public void setMinThread(Integer minThread)
	{
		this.minThread = minThread;
	}

	@Column(name = "desc", length = 65535)
	public String getDesc()
	{
		return this.desc;
	}

	public void setDesc(String desc)
	{
		this.desc = desc;
	}
}